#!/usr/bin/python
# -*- coding: utf-8 -*-
# File: imageviewer.py
# Author: Tomás Vírseda
# License: GPL v3
# Description: a cloud widget

import gtk
import gtk.gdk
import pango
from math import *

class ImageViewer(gtk.ScrolledWindow):
    def __init__(self, filename):
        gtk.ScrolledWindow.__init__(self)
        image = gtk.Image()
        viewport = gtk.Viewport()
        image.set_from_file(filename)
        self.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
        self.set_shadow_type(gtk.SHADOW_IN)
        viewport.add(image)
        self.add(viewport)
        self.show_all()



